updating oE colors_to_attr
colors_to_attr
include console.e namespace console public function colors_to_attr(object fgbg, integer bg = 0)
converts a foreground and background color set to its attribute code format.
Parameters:
- fgbg : Either a sequence of {fgcolor, bgcolor} or just an integer fgcolor.
- bg : An integer bgcolor. Only used when fgbg is an integer.
Returns:
An integer, an attribute code.
Example 1:
? colors_to_attr({12, 5}) --> 92 ? colors_to_attr(12, 5) --> 92
See Also:
Not Categorized, Please Help
|